@import './common';
@import './head';
@import './foot';

.banner-box {
    margin-bottom: 50px;
}

.contect-type-box {
    justify-content: space-around;
    padding: 0 8%;
    margin-bottom: 50px;
    font-size: 22px;
    line-height: 36px;
    color: #333333;

    .contect-type-item {
        text-align: center;

        img {
            width: 70px;
            height: 70px;
            margin-bottom: 40px;
        }

        .item-address {
            max-width: 260px;
        }

        .tel-item {
            &:nth-child(2) {
                margin: 0 20px;
            }
        }
    }
}

.form-map-box {
    padding: 0 8%;
    margin-bottom: 50px;

    .form-box {
        width: 100%;
        margin-right: 60px;
        max-width: 640px;

        .form-item {
            font-size: 18px;
            color: #ffffff;
            margin-bottom: 30px;

            &:last-child {
                margin-bottom: 0;
                text-align: center;
            }

            input {
                background: rgba(121, 146, 166, 0.7);
                color: #ffffff;
                border-radius: 4px;
                border: none;
                outline: none;
                padding: 15px 9px;
                width: 100%;
                max-width: 640px;

                &::placeholder {
                    color: #ffffff;
                }
            }

            textarea {
                @extend input;
                height: 200px;
                resize: none;
            }

            button {
                background: rgba(121, 146, 166, 0.7);
                color: #ffffff;
                border: none;
                outline: none;
                padding: 15px 25px;
                border-radius: 4px;
            }
        }
    }

    .map-box {
        flex: 1;
        max-width: 900px;

        #map-container {
            width: 100%;
            height: 100%;
        }
    }
}

@media screen and (max-width: 750px) {
    .banner-box {
        margin-bottom: 0.5333rem !important;
    }

    .contect-type-box {
        flex-wrap: wrap;
        margin-bottom: 0 !important;

        .contect-type-item {
            width: 100%;
            margin-bottom: 0.5333rem !important;

            img {
                width: 0.9333rem !important;
                height: 0.9333rem !important;
                margin-bottom: 0.44rem !important;
            }

            p {
                font-size: 0.4rem !important;
                line-height: 0.64rem !important;
            }

            .item-address {
                margin: 0 auto;
                max-width: 4.7067rem !important;
            }

            .tel-item {
                &:nth-child(2) {
                    margin: 0 0.4rem !important;
                }
            }
        }
    }

    .form-map-box {
        flex-wrap: wrap;
        margin-bottom: 0.5333rem !important;

        .form-box {
            max-width: 100% !important;
            margin-right: 0 !important;

            .form-item {
                margin-bottom: 0.2667rem !important;

                &:first-child {
                    p {
                        font-size: 0.4267rem !important;
                    }
                }

                input {
                    font-size: 0.3733rem !important;
                    border-radius: 0.0533rem !important;
                    padding: 0.2rem 0.2667rem !important;
                    max-width: 100% !important;
                }

                textarea {
                    height: 2.6667rem !important;
                }

                button {
                    font-size: 0.4rem;
                    padding: 0.2rem 0.3333rem !important;
                    border-radius: 0.0533rem !important;
                }
            }
        }
    }

    .map-box {
        flex: none !important;
        width: 100%;
        max-width: 100% !important;
        height: 5.0667rem !important;
    }
}